package org.jeecg.modules.demo.mp.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: Budget
 * @Author: jeecg-boot
 * @Date:   2022-06-30
 * @Version: V1.0
 */
@Data
@TableName("mp_budget")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="mp_budget对象", description="Budget")
public class MpBudget implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private java.lang.String id;
	/**Period*/
	@Excel(name = "Period", width = 15)
    @ApiModelProperty(value = "Period")
    private java.lang.String version;
	/**Division*/
	@Excel(name = "Division", width = 15)
    @ApiModelProperty(value = "Division")
    private java.lang.String division;
	/**Detailed Division*/
	@Excel(name = "Detailed Division", width = 15)
    @ApiModelProperty(value = "Detailed Division")
    private java.lang.String detailedDivision;
	/**Product*/
	@Excel(name = "Product", width = 15)
    @ApiModelProperty(value = "Product")
    private java.lang.String product;
	/**Wave*/
	@Excel(name = "Wave", width = 15)
    @ApiModelProperty(value = "Wave")
    private java.lang.String wave;
	/**Campaign Name*/
	@Excel(name = "Campaign Name", width = 15)
    @ApiModelProperty(value = "Campaign Name")
    private java.lang.String campaignName;
	/**Buying Type*/
	@Excel(name = "Buying Type", width = 15)
    @ApiModelProperty(value = "Buying Type")
    private java.lang.String buyingType;
	/**MediaType*/
	@Excel(name = "MediaType", width = 15)
    @ApiModelProperty(value = "MediaType")
    private java.lang.String mediaType;
	/**Budget*/
	@Excel(name = "Budget", width = 15)
    @ApiModelProperty(value = "Budget")
    private java.math.BigDecimal budget;
	/**Revision*/
	@Excel(name = "Revision", width = 15)
    @ApiModelProperty(value = "Revision")
    private java.lang.Integer revision;
	/**Create User*/
    @ApiModelProperty(value = "Create User")
    private java.lang.String createBy;
	/**Create Time*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "Create Time")
    private java.util.Date createTime;
	/**Update User*/
    @ApiModelProperty(value = "Update User")
    private java.lang.String updateBy;
	/**Update Time*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "Update Time")
    private java.util.Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private java.lang.String sysOrgCode;
    private java.lang.String batchid;


    @TableField(exist=false)
    private transient String dimKey;

    public String getDimKey(){
        if(dimKey ==null){
            dimKey= new StringBuilder().append(version).append("#").append(detailedDivision).append("#").append(campaignName).append("#").append(mediaType).append("#").append(buyingType).toString();
        }
        return dimKey;
    }
}
